from fastapi import APIRouter

from app.core.dependency import DependPermission

from .category import category_router
from .category_manage import category_manage_router
from .base import base_router
from .poetry import poetry_router
from .poetry_manage import poetry_manage_router
from .idiom import idiom_router

v1_router = APIRouter()

v1_router.include_router(base_router, prefix="")
v1_router.include_router(category_router, prefix="/category")
v1_router.include_router(
    category_manage_router,
    prefix="/category_manage",
    dependencies=[DependPermission])
v1_router.include_router(poetry_router, prefix="/poetry")
v1_router.include_router(poetry_manage_router, prefix="/poetry_manage", dependencies=[DependPermission])
v1_router.include_router(idiom_router, prefix="/idiom")
